﻿
using HBase;
using Net.http;
using System;
using System.Collections.Generic;
using System.Linq;


namespace hCommand {
    [RoutePrefix("config")]
    public class ConfigServer : BaseApiController {



 
        [HttpGet, Route("loggerFile/{v}")]
        public BaseResult loggerFile(String v) {
            if (v == "1") {
                LoggerCommon.loggerInfoLoggerFile = true;
            } else {
                LoggerCommon.loggerInfoLoggerFile = false;
            }
            return BaseResult.Ok(LoggerCommon.loggerInfoLoggerFile);
        }

        [HttpGet, Route("loggerMongon/{v}")]
        public BaseResult loggerMongon(String v) {
            if (v == "1") {
                LoggerCommon.loggerMongon = true;
            } else {
                LoggerCommon.loggerMongon = false;
            }
            return BaseResult.Ok(LoggerCommon.loggerMongon);
        }


        [HttpGet, Route("loggerMyConsole/{v}")]
        public BaseResult loggerMyConsole(String v) {
            if (v == "1") {
                LoggerCommon.loggerMyConsole = true;
            } else {
                LoggerCommon.loggerMyConsole = false;
            }
            return BaseResult.Ok(LoggerCommon.loggerMyConsole);
        }

        



    }
}
